Constrained Placement - Center

How do I center a DBE (width) in a DB?
SystemAdmin - Fri Feb 18 08:17:54 EST 2011

Re: Constrained Placement - Center
llandale - Fri Feb 18 09:39:54 EST 2011

There is no center constraint.

You can do it awkwardly surrounding your DBE with empty label DBEs that are attached to form and to your DBE, and use the setExtraWidthShare() command to keep it in the middle.

  • Louie

Re: Constrained Placement - Center
Mathias Mamsch - Fri Feb 18 09:41:02 EST 2011

You make a dummy element (Canvas or Button is good, as you can specify the width) with a certain width, put that to the left of the DBE you want to center and hide it. Remember to set the extraWidthShare of the hidden element to 50% so it will stay centered if the dialog scales. Probably not the answer you have wished for, but I would know no better way? ;-) Mathias

Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Re: Constrained Placement - Center
SystemAdmin - Mon Feb 21 05:19:44 EST 2011

Thanks,
That was what I feared I would have to do.